﻿using NAudio.Wave;

namespace SpeechLib
{
    public static class WaveSaver
    {
        public static void SaveWav(string mp3, string wav)
        {
            using Mp3FileReader reader = new Mp3FileReader(mp3);
            using WaveStream waveStream = WaveFormatConversionStream.CreatePcmStream(reader);
            WaveFileWriter.CreateWaveFile(wav, waveStream);
        }
    }

}